import request from "@/utils/request";
//调用权限
export default {
  getList(data) {
    return request({
      url: "/api/bookaddress/groups/",
      method: "get",
      params: data
    });
  },
  toAdd(data) {
    return request({
      url: "/api/bookaddress/groups/",
      method: "post",
      data
    });
  },
  toDelete(id) {
    return request({
      url: "/api/bookaddress/groups/" + id + "/",
      method: "delete"
    });
  },
  toEdit(id, data) {
    return request({
      url: "/api/bookaddress/groups/" + id + "/",
      method: "put",
      data
    });
  },
  bookaddressGroupsUsers(id, data) {
    return request({
      url: "/api/bookaddress/groups/" + id + "/users/",
      method: "get",
      data
    });
  },
  bookaddressGroupsAdd(data) {
    return request({
      url: "/api/bookaddress/groups/add/",
      method: "post",
      data
    });
  },
  bookaddressGroupsDelete(data) {
    return request({
      url: "/api/bookaddress/groups/delete/",
      method: "post",
      data
    });
  },
};
